package com.cn.xact.ty_treasured_book.net.demo;

public class MockRequestPathGenerater {

    public static final int MOCK_NET_REQUEST_PATH_LOGIN = 1;
    public static final int MOCK_NET_REQUEST_PATH_EXCHANGE_CREDIT = 2;
    public static final int MOCK_NET_REQUEST_PATH_GET_ALL_MSG = 3;
    public static final int MOCK_NET_REQUEST_PATH_GET_NEW_MSG = 4;
    public static final int MOCK_NET_REQUEST_PATH_GET_EXCHANGE_LIST = 5;
    public static final int MOCK_NET_REQUEST_PATH_GET_EXCHANGE_HISTORY = 6;
    public static final int MOCK_NET_REQUEST_PATH_GET_PHONES = 7;
    public static final int MOCK_NET_REQUEST_PATH_GET_POP_WORDS = 8;
    public static final int MOCK_NET_REQUEST_PATH_GET_RANK = 9;
    public static final int MOCK_NET_REQUEST_PATH_GET_RULES = 10;
    public static final int MOCK_NET_REQUEST_PATH_GET_USER_INFO = 11;
    public static final int MOCK_NET_REQUEST_PATH_GET_VERIFY_CODE = 12;
    public static final int MOCK_NET_REQUEST_PATH_SEARCH = 13;
    public static final int MOCK_NET_REQUEST_PATH_SET_USER_INFO = 14;
    public static final int MOCK_NET_REQUEST_PATH_SET_USER_PASSWORD = 15;
    public static final int MOCK_NET_REQUEST_PATH_GET_APP_COMMENTS = 16;

    private static final String MOCK_NET_REQUEST_SERVER = "http://tianyi-treasured-book.googlecode.com/svn/trunk/server/";

    private static final String MOCK_NET_REQUEST_FILE_NAME_LOGIN = "login.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_EXCHANGE_CREDIT = "exchange_credit.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_ALL_MSG = "get_all_msg.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_NEW_MSG = "get_new_msg.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_EXCHANGE_LIST = "get_exchange_list.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_EXCHANGE_HISTORY = "get_exchange_history.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_PHONES = "get_phones.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_POP_WORDS = "get_pop_words.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_RANK = "get_rank.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_RULES = "get_rules.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_USER_INFO = "get_user_info.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_VERIFY_CODE = "get_vcode.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_SEARCH = "search.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_SET_USER_INFO = "set_user_info.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_SET_USER_PASSWORD = "set_user_psaaword.xml";
    private static final String MOCK_NET_REQUEST_FILE_NAME_GET_APP_COMMENTS = "get_comments.xml";

    public static String generatePath(int pathId) {
        String path = null;

        switch (pathId) {
        case MOCK_NET_REQUEST_PATH_LOGIN:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_LOGIN;
            break;
        case MOCK_NET_REQUEST_PATH_EXCHANGE_CREDIT:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_EXCHANGE_CREDIT;
            break;
        case MOCK_NET_REQUEST_PATH_GET_ALL_MSG:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_ALL_MSG;
            break;
        case MOCK_NET_REQUEST_PATH_GET_NEW_MSG:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_NEW_MSG;
            break;
        case MOCK_NET_REQUEST_PATH_GET_EXCHANGE_LIST:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_EXCHANGE_LIST;
            break;
        case MOCK_NET_REQUEST_PATH_GET_EXCHANGE_HISTORY:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_EXCHANGE_HISTORY;
            break;
        case MOCK_NET_REQUEST_PATH_GET_PHONES:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_PHONES;
            break;
        case MOCK_NET_REQUEST_PATH_GET_POP_WORDS:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_POP_WORDS;
            break;
        case MOCK_NET_REQUEST_PATH_GET_RANK:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_RANK;
            break;
        case MOCK_NET_REQUEST_PATH_GET_RULES:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_RULES;
            break;
        case MOCK_NET_REQUEST_PATH_GET_USER_INFO:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_USER_INFO;
            break;
        case MOCK_NET_REQUEST_PATH_GET_VERIFY_CODE:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_VERIFY_CODE;
            break;
        case MOCK_NET_REQUEST_PATH_SEARCH:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_SEARCH;
            break;
        case MOCK_NET_REQUEST_PATH_SET_USER_INFO:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_SET_USER_INFO;
            break;
        case MOCK_NET_REQUEST_PATH_SET_USER_PASSWORD:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_SET_USER_PASSWORD;
            break;
        case MOCK_NET_REQUEST_PATH_GET_APP_COMMENTS:
            path = MOCK_NET_REQUEST_SERVER + MOCK_NET_REQUEST_FILE_NAME_GET_APP_COMMENTS;
            break;
        }

        return path;
    }
}
